<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>


<!--<ol class="am-pagination" th:fragment="pageNav(pageInfo, prevText, nextText, prefix)">-->
<!--&lt;!&ndash;    <th:block th:if="${pageInfo.hasPreviousPage}">&ndash;&gt;-->
<!--    <th:block>-->
<!--&lt;!&ndash;    <li class="am-pagination-prev"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.prePage}}" th:text="${prevText}"></a></li>&ndash;&gt;-->
<!--        <li class="am-pagination-prev"><a></a></li>-->

<!--    </th:block>-->
<!--&lt;!&ndash;    <th:block th:each="navIndex :${ pageInfo.navigatepageNums}">&ndash;&gt;-->
<!--    <th:block>-->
<!--&lt;!&ndash;    <th:block th:if="${pageInfo.pages} <= 5">&ndash;&gt;-->
<!--        <th:block>-->
<!--&lt;!&ndash;        <li th:class="${pageInfo.pageNum}==${navIndex}?'current':''">&ndash;&gt;-->
<!--            <li>-->
<!--            <a th:href="@{'/page/'+${navIndex}}" th:text="${navIndex}"></a>-->
<!--            </li>-->
<!--        </th:block>-->
<!--&lt;!&ndash;        <th:block th:if="${pageInfo.pages} > 5">&ndash;&gt;-->
<!--        <th:block>-->
<!--&lt;!&ndash;        <li th:if="${pageInfo.pageNum <=3 &&  navIndex <= 5}" th:class="${pageInfo.pageNum}==${navIndex}?'current':''">&ndash;&gt;-->
<!--            <li>-->
<!--            <a th:href="@{'/page/'+${navIndex}}" th:text="${navIndex}"></a>-->
<!--            </li>-->
<!--&lt;!&ndash;            <li th:if="${pageInfo.pageNum >= pageInfo.pages-2 &&  navIndex > pageInfo.pages-5}" th:class="${pageInfo.pageNum}==${navIndex}?'current':''">&ndash;&gt;-->
<!--            <li>-->
<!--            <a th:href="@{'/page/'+${navIndex}}" th:text="${navIndex}"></a>-->
<!--            </li>-->
<!--&lt;!&ndash;            <li th:if="${pageInfo.pageNum >=4 && pageInfo.pageNum <= pageInfo.pages-3 &&  navIndex >= pageInfo.pageNum-2 && navIndex <= pageInfo.pageNum+2}"  th:class="${pageInfo.pageNum}==${navIndex}?'current':''">&ndash;&gt;-->
<!--            <li>-->
<!--            <a th:href="@{'/page/'+${navIndex}}" th:text="${navIndex}"></a>-->
<!--            </li>-->
<!--        </th:block>-->



<!--    </th:block>-->
<!--&lt;!&ndash;    <th:block th:if="${pageInfo.hasNextPage}">&ndash;&gt;-->
<!--    <th:block>-->
<!--    <li class="am-pagination-next">-->
<!--&lt;!&ndash;        <a th:href="@{'/'+${prefix}+'/'+${pageInfo.nextPage}}" th:text="${nextText}"></a>&ndash;&gt;-->
<!--        <a></a>-->
<!--    </li>-->
<!--    </th:block>-->
<!--</ol>-->



<div th:fragment="pageAdminNav(pageInfo)">
    <div class="clearfix">
        <ul class="pagination m-b-5 pull-right">
            <li th:if="${pageInfo.hasPreviousPage}">
                <a th:href="@{'?page='+${pageInfo.prePage}}" aria-label="Previous">
                    <i class="fa fa-angle-left"></i>&nbsp;上一页
                </a>
            </li>
            <th:block th:each="nav : ${pageInfo.navigatepageNums}">
                <li th:class="${nav==pageInfo.pageNum}?'active':''"><a th:href="@{'?page='+${nav}}" th:text="${nav}"></a>
                </li>
            </th:block>

            <th:block th:if="${pageInfo.hasNextPage}">
                <li>
                    <a th:href="@{'?page='+${pageInfo.nextPage}}" aria-label="Next">
                        下一页&nbsp;<i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </th:block>

            <li><span th:text="'共'+${pageInfo.pages}+'页'"></span></li>
        </ul>
    </div>
</div>

</body>
</html>